﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lso_2u_Web应用开发.Models.Database
{
    [Table("Chat")]
    public partial class Chat
    {
        [Key]
        [Column("id")]
        public int Id { get; set; }
        [Required]
        [Column("message_type")]
        [StringLength(32)]
        public string MessageType { get; set; }
        [Required]
        [Column("message_data")]
        public string MessageData { get; set; }
        [Column("FK_send_user_id")]
        public int FkSendUserId { get; set; }
        [Column("FK_target_user_id")]
        public int FkTargetUserId { get; set; }
        [Column("send_time", TypeName = "datetime")]
        public DateTime SendTime { get; set; }
    }
}
